<?php


namespace app\common\model;


use think\Model;
use think\model\concern\SoftDelete;

class FriendLink extends Model
{
    use SoftDelete;

    protected $autoWriteTimestamp = 'datetime';
    protected $deleteTime = 'delete_time';

    public static function getFriendLink($field = 'id,title,description,link')
    {
        $friendlinkList = FriendLink::where(['is_show' => 1])
            ->cache('friend_link_sql', 360)
            ->field('id,title,description,link')
            ->select();
        return $friendlinkList;
    }
}
